package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_QLDTTXA_HocKyTrongNam")
public class Tbl_QLDTTXA_HocKyTrongNam implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private String ten;
   private Tbl_QLDTTXA_NamHoc namHocId = null;
   private Date thoiGianBatDau;
   private Date thoiGianKetThuc;
   private Integer tongTuanHoc;
   private Integer tuanThiGiuaKy;
   private Integer tuanKTThiGiuaKy;
   private Integer tuanThiCuoiKy;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   public String getTen() {
   	return ten;
   }
   public void setTen(String ten) {
   	this.ten= ten;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="namHocId")
   @ForeignKey(name="FK_tbl_QLDTTXA_NamHoc_tbl_QLDTTXA_HocKyTrongNam")
   public Tbl_QLDTTXA_NamHoc getNamHocId() {
	    return namHocId;
   }
   public void setNamHocId(Tbl_QLDTTXA_NamHoc namHocId) {
	    this.namHocId=namHocId;
   }

   public Date getThoiGianBatDau() {
   	return thoiGianBatDau;
   }
   public void setThoiGianBatDau(Date thoiGianBatDau) {
   	this.thoiGianBatDau= thoiGianBatDau;
   }

   public Date getThoiGianKetThuc() {
   	return thoiGianKetThuc;
   }
   public void setThoiGianKetThuc(Date thoiGianKetThuc) {
   	this.thoiGianKetThuc= thoiGianKetThuc;
   }

   public Integer getTongTuanHoc() {
   	return tongTuanHoc;
   }
   public void setTongTuanHoc(Integer tongTuanHoc) {
   	this.tongTuanHoc= tongTuanHoc;
   }

   public Integer getTuanThiGiuaKy() {
   	return tuanThiGiuaKy;
   }
   public void setTuanThiGiuaKy(Integer tuanThiGiuaKy) {
   	this.tuanThiGiuaKy= tuanThiGiuaKy;
   }

   public Integer getTuanKTThiGiuaKy() {
   	return tuanKTThiGiuaKy;
   }
   public void setTuanKTThiGiuaKy(Integer tuanKTThiGiuaKy) {
   	this.tuanKTThiGiuaKy= tuanKTThiGiuaKy;
   }

   public Integer getTuanThiCuoiKy() {
   	return tuanThiCuoiKy;
   }
   public void setTuanThiCuoiKy(Integer tuanThiCuoiKy) {
   	this.tuanThiCuoiKy= tuanThiCuoiKy;
   }
}//endClass 

